package com.virus.mall.model.vo;

import java.util.List;

/**
 * @Classname OrdersVo
 * @Description NULL
 * @Date 2021/4/19 13:40
 * @Created by virus
 */
public class OrdersVo {

    private String id;

    private Integer userId;

    private Integer goodsDetailId;

    private String goods;

    private String spec;

    private Integer goodsNum;

    private Double amount;

    private Integer stateId;

    private String state;

    private UserVo user;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getGoodsDetailId() {
        return goodsDetailId;
    }

    public void setGoodsDetailId(Integer goodsDetailId) {
        this.goodsDetailId = goodsDetailId;
    }

    public String getGoods() {
        return goods;
    }

    public void setGoods(String goods) {
        this.goods = goods;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public Integer getGoodsNum() {
        return goodsNum;
    }

    public void setGoodsNum(Integer goodsNum) {
        this.goodsNum = goodsNum;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public Integer getStateId() {
        return stateId;
    }

    public void setStateId(Integer stateId) {
        if (stateId == 0) {
            this.state = "未付款";
        } else if (stateId == 1) {
            this.state = "未发货";
        } else if (stateId == 2) {
            this.state = "已发货";
        } else if (stateId == 3) {
            this.state = "已到货";
        }
        this.stateId = stateId;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public UserVo getUser() {
        return user;
    }

    public void setUser(UserVo user) {
        this.user = user;
    }

    public void setNickname(String nickname) {
       this.user.setNickname(nickname);
    }

    public void setName(String name) {
        this.user.setName(name);
    }

    public void setAddress(String address) {
        this.user.setAddress(address);
    }

    public void setPhone(String phone) {
        this.user.setPhone(phone);
    }
}
